<!DOCTYPE html>
<html lang="en">

    <style>
        #d1{
            font-size: 100px;
            color: red;
        }
     </style>
     <div id="d1"></div>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>

<script>
 setInterval(f,1000);

 function f(){
 d1.innerHTML=new Date();
 }
</script>
</html>